package com.realworld.service;

import com.realworld.common.R;
import com.realworld.model.dto.ArticleReq;
import com.realworld.model.pojo.Article;

import java.text.ParseException;
import java.util.List;

public interface ArticleService {
    List<Article> getArticleList(Article article);
    List<Article> getArticleInfoList(Integer uid);
    Article getArticleInfo(Integer id);
    R addArticle(ArticleReq articleReq,String uid) throws ParseException;
    R updateArticle(ArticleReq articleReq,String uid);
    R deleteArticle(String uid,Integer artId);
}
